﻿create PROCEDURE Sync.SP_Governorates_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[GovernorateID],
		g.[GovernorateName],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[Governorates] g RIGHT JOIN Sync.Governorates_Tracking t  
    ON t.GovernorateID = g.GovernorateID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END














